package cn.itcast.demo01;

import java.io.File;

public class Demo04File {
    public static void main(String[] args) {
        show02();
    }

    private static void show02() {
        File f1 =new File("E:\\MyApplication4");
        System.out.println(f1.isDirectory());//文件夹结尾
        System.out.println(f1.isFile());//文件结尾
    }

    private static void show01() {
        File f1 =new File("E:\\MyApplication4");
        System.out.println(f1.exists());
    }
}
